<template>
  <div class="home">
    <router-link to='/login'>登录页</router-link> <span class="iconfont iconjiantou1"></span>
    <router-link to='/register'>注册页</router-link><span class="iconfont iconjiantou1"></span>
    <router-link to='/Personal'>个人中心</router-link><span class="iconfont iconjiantou1"></span>
    <router-link to='/index2'>首页文章</router-link>
    <router-link to='/text'>测试页</router-link>
    <!-- <router-link to='/index'>首页</router-link> -->
  </div>
</template>
<script>
export default {
  mounted(){
    // this.$toast('嘻嘻')
    this.$axios({
      method:'get',
      url:'http://127.0.0.1:3000/post',
    })
    .then((res)=>{
       console.log(res.data);
      //  this.$totas(res.data.)
    })
  }
}
</script>
<style lang="less" scoped>
 a{
   display: inline-block;
   width: 70/360*100vw;
   height: 30/360*100vw;
   line-height: 30/360*100vw;
   text-align: center;
   color: #ffffff;
   background-color: green;
   &:nth-of-type(2n){
     background-color: red;
   } 
 }
 .iconjiantou1{
   font-size: 30px;
 }
 
</style>
